﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace CommonBase.ConvertHelp
{
    public class LoginStateToStringConverter : IValueConverter
    {
        #region Converter

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string strCmd = "XX";
            if (value!=null) 
            {
                int _TypeV=System.Convert.ToInt32(value);
                if (_TypeV == 0)
                {
                    strCmd = "TerminalMirroringWatchDog.exe";
                }
                else if (_TypeV == 1) 
                {
                    strCmd = "HelpProjectManager.dll";
                }
         
            }
            
            return strCmd;

        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
        #endregion

    }
}
